package cn.ranko.shiro.controller;

import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.ranko.shiro.model.SysMenu;
import cn.ranko.shiro.service.SysMenuService;

@Controller
@RequestMapping("/shiro/Menu")
public class MenuController {
	
	@Autowired
    SysMenuService sysMenuService;
	
	  	@RequiresPermissions(value = {"menu_add","menu_delete"},logical = Logical.OR)
	    @RequestMapping("/save.action")
	    @ResponseBody
	    public String save(SysMenu  sysMenu){
	  		//sysMenuService.insertMenus();
			return null;
	    }
 
	
}
